--[[
	Get the list of SQL Reserved Keywords
	Used by the sql module only so not loaded by default.

	_M(mode, [pattern]) -> keywords list

]]

--as empirically found with test_sql_keywords.lua
local keywords = {
	['Firebird 2.0.6'] = {
		ACTIVE = true, ADD = true, ADMIN = true, AFTER = true, ALL = true, ALTER = true, AND = true, ANY = true, AS = true, ASC = true, ASCENDING = true, AT = true, AUTO = true, AVG = true, BEFORE = true, BEGIN = true, BETWEEN = true, BIGINT = true, BIT_LENGTH = true, BLOB = true, BOTH = true, BY = true, CASE = true, CAST = true, CHAR = true, CHARACTER = true, CHARACTER_LENGTH = true, CHAR_LENGTH = true, CHECK = true, CLOSE = true, COLLATE = true, COLUMN = true, COMMIT = true, COMMITTED = true, COMPUTED = true, CONDITIONAL = true, CONSTRAINT = true, CONTAINING = true, COUNT = true, CREATE = true, CROSS = true, CSTRING = true, CURRENT = true, CURRENT_CONNECTION = true, CURRENT_DATE = true, CURRENT_ROLE = true, CURRENT_TIME = true, CURRENT_TIMESTAMP = true, CURRENT_TRANSACTION = true, CURRENT_TRANSFORM_GROUP_FOR_TYPE = true, CURRENT_USER = true, CURSOR = true, DATABASE = true, DATE = true, DAY = true, DEBUG = true, DEC = true, DECIMAL = true, DECLARE = true, DEFAULT = true, DELETE = true, DESC = true, DESCENDING = true, DISTINCT = true, DO = true, DOMAIN = true, DOUBLE = true, DROP = true, ELSE = true, END = true, ENTRY_POINT = true, ESCAPE = true, EXCEPTION = true, EXECUTE = true, EXISTS = true, EXIT = true, EXTERNAL = true, EXTRACT = true, FETCH = true, FILE = true, FILTER = true, FLOAT = true, FOR = true, FOREIGN = true, FROM = true, FULL = true, FUNCTION = true, GDSCODE = true, GENERATOR = true, GEN_ID = true, GRANT = true, GROUP = true, HAVING = true, HOUR = true, IF = true, IN = true, INACTIVE = true, INDEX = true, INNER = true, INPUT_TYPE = true, INSERT = true, INT = true, INTEGER = true, INTO = true, IS = true, ISOLATION = true, JOIN = true, KEY = true, LEADING = true, LEFT = true, LENGTH = true, LEVEL = true, LIKE = true, LONG = true, LOWER = true, MANUAL = true, MAX = true, MAXIMUM_SEGMENT = true, MERGE = true, MESSAGE = true, MIN = true, MINUTE = true, MODULE_NAME = true, MONTH = true, NAMES = true, NATIONAL = true, NATURAL = true, NCHAR = true, NO = true, NOT = true, NULL = true, NUMERIC = true, OCTET_LENGTH = true, OF = true, ON = true, ONLY = true, OPEN = true, OPTION = true, OR = true, ORDER = true, OUTER = true, OUTPUT_TYPE = true, OVERFLOW = true, PAGE = true, PAGES = true, PAGE_SIZE = true, PARAMETER = true, PASSWORD = true, PLAN = true, POSITION = true, POST_EVENT = true, PRECISION = true, PRIMARY = true, PRIVILEGES = true, PROCEDURE = true, PROTECTED = true, ['RDB$DB_KEY'] = true, READ = true, REAL = true, RECORD_VERSION = true, RECREATE = true, REFERENCES = true, RELEASE = true, RESERV = true, RESERVING = true, RETAIN = true, RETURNING_VALUES = true, RETURNS = true, REVOKE = true, RIGHT = true, ROLLBACK = true, ROWS = true, ROW_COUNT = true, SAVEPOINT = true, SCHEMA = true, SECOND = true, SEGMENT = true, SELECT = true, SET = true, SHADOW = true, SHARED = true, SINGULAR = true, SIZE = true, SMALLINT = true, SNAPSHOT = true, SOME = true, SORT = true, SQLCODE = true, STABILITY = true, STARTING = true, STARTS = true, STATISTICS = true, SUB_TYPE = true, SUM = true, SUSPEND = true, TABLE = true, THEN = true, TIME = true, TIMESTAMP = true, TO = true, TRAILING = true, TRANSACTION = true, TRIGGER = true, TRIM = true, UNCOMMITTED = true, UNION = true, UNIQUE = true, UPDATE = true, UPPER = true, USER = true, USING = true, VALUE = true, VALUES = true, VARCHAR = true, VARIABLE = true, VARYING = true, VIEW = true, WAIT = true, WHEN = true, WHERE = true, WHILE = true, WITH = true, WORK = true, WRITE = true, YEAR = true,
	},
	['Firebird 2.1.3'] = {
		ACTIVE = true, ADD = true, ADMIN = true, AFTER = true, ALL = true, ALTER = true, AND = true, ANY = true, AS = true, ASC = true, ASCENDING = true, AT = true, AUTO = true, AVG = true, BEFORE = true, BEGIN = true, BETWEEN = true, BIGINT = true, BIT_LENGTH = true, BLOB = true, BOTH = true, BY = true, CASE = true, CAST = true, CHAR = true, CHARACTER = true, CHARACTER_LENGTH = true, CHAR_LENGTH = true, CHECK = true, CLOSE = true, COLLATE = true, COLUMN = true, COMMIT = true, COMMITTED = true, COMPUTED = true, CONDITIONAL = true, CONNECT = true, CONSTRAINT = true, CONTAINING = true, COUNT = true, CREATE = true, CROSS = true, CSTRING = true, CURRENT = true, CURRENT_CONNECTION = true, CURRENT_DATE = true, CURRENT_ROLE = true, CURRENT_TIME = true, CURRENT_TIMESTAMP = true, CURRENT_TRANSACTION = true, CURRENT_TRANSFORM_GROUP_FOR_TYPE = true, CURRENT_USER = true, CURSOR = true, DATABASE = true, DATE = true, DAY = true, DEBUG = true, DEC = true, DECIMAL = true, DECLARE = true, DEFAULT = true, DELETE = true, DESC = true, DESCENDING = true, DISCONNECT = true, DISTINCT = true, DO = true, DOMAIN = true, DOUBLE = true, DROP = true, ELSE = true, END = true, ENTRY_POINT = true, ESCAPE = true, EXCEPTION = true, EXECUTE = true, EXISTS = true, EXIT = true, EXTERNAL = true, EXTRACT = true, FETCH = true, FILE = true, FILTER = true, FLOAT = true, FOR = true, FOREIGN = true, FROM = true, FULL = true, FUNCTION = true, GDSCODE = true, GENERATOR = true, GEN_ID = true, GLOBAL = true, GRANT = true, GROUP = true, HAVING = true, HOUR = true, IF = true, IN = true, INACTIVE = true, INDEX = true, INNER = true, INPUT_TYPE = true, INSENSITIVE = true, INSERT = true, INT = true, INTEGER = true, INTO = true, IS = true, ISOLATION = true, JOIN = true, KEY = true, LEADING = true, LEFT = true, LENGTH = true, LEVEL = true, LIKE = true, LONG = true, LOWER = true, MANUAL = true, MAX = true, MAXIMUM_SEGMENT = true, MERGE = true, MIN = true, MINUTE = true, MODULE_NAME = true, MONTH = true, NAMES = true, NATIONAL = true, NATURAL = true, NCHAR = true, NO = true, NOT = true, NULL = true, NUMERIC = true, OCTET_LENGTH = true, OF = true, ON = true, ONLY = true, OPEN = true, OPTION = true, OR = true, ORDER = true, OUTER = true, OUTPUT_TYPE = true, OVERFLOW = true, PAGE = true, PAGES = true, PAGE_SIZE = true, PARAMETER = true, PASSWORD = true, PLAN = true, POSITION = true, POST_EVENT = true, PRECISION = true, PRIMARY = true, PRIVILEGES = true, PROCEDURE = true, PROTECTED = true, ['RDB$DB_KEY'] = true, READ = true, REAL = true, RECORD_VERSION = true, RECREATE = true, RECURSIVE = true, REFERENCES = true, RELEASE = true, RESERV = true, RESERVING = true, RETAIN = true, RETURNING_VALUES = true, RETURNS = true, REVOKE = true, RIGHT = true, ROLLBACK = true, ROWS = true, ROW_COUNT = true, SAVEPOINT = true, SCHEMA = true, SECOND = true, SEGMENT = true, SELECT = true, SENSITIVE = true, SET = true, SHADOW = true, SHARED = true, SINGULAR = true, SIZE = true, SMALLINT = true, SNAPSHOT = true, SOME = true, SORT = true, SQLCODE = true, STABILITY = true, START = true, STARTING = true, STARTS = true, STATISTICS = true, SUB_TYPE = true, SUM = true, SUSPEND = true, TABLE = true, THEN = true, TIME = true, TIMESTAMP = true, TO = true, TRAILING = true, TRANSACTION = true, TRIGGER = true, TRIM = true, UNCOMMITTED = true, UNION = true, UNIQUE = true, UPDATE = true, UPPER = true, USER = true, USING = true, VALUE = true, VALUES = true, VARCHAR = true, VARIABLE = true, VARYING = true, VIEW = true, WAIT = true, WHEN = true, WHERE = true, WHILE = true, WITH = true, WORK = true, WRITE = true, YEAR = true,
	},
	['Firebird 2.5.0'] = {
		ADD = true, ADMIN = true, ALL = true, ALTER = true, AND = true, ANY = true, AS = true, AT = true, AVG = true, BEGIN = true, BETWEEN = true, BIGINT = true, BIT_LENGTH = true, BLOB = true, BOTH = true, BY = true, CASE = true, CAST = true, CHAR = true, CHARACTER = true, CHARACTER_LENGTH = true, CHAR_LENGTH = true, CHECK = true, CLOSE = true, COLLATE = true, COLUMN = true, COMMIT = true, CONNECT = true, CONSTRAINT = true, COUNT = true, CREATE = true, CROSS = true, CURRENT = true, CURRENT_CONNECTION = true, CURRENT_DATE = true, CURRENT_ROLE = true, CURRENT_TIME = true, CURRENT_TIMESTAMP = true, CURRENT_TRANSACTION = true, CURRENT_TRANSFORM_GROUP_FOR_TYPE = true, CURRENT_USER = true, CURSOR = true, DATE = true, DAY = true, DEC = true, DECIMAL = true, DECLARE = true, DEFAULT = true, DELETE = true, DISCONNECT = true, DISTINCT = true, DOUBLE = true, DROP = true, ELSE = true, END = true, ESCAPE = true, EXECUTE = true, EXISTS = true, EXTERNAL = true, EXTRACT = true, FETCH = true, FILTER = true, FLOAT = true, FOR = true, FOREIGN = true, FROM = true, FULL = true, FUNCTION = true, GDSCODE = true, GLOBAL = true, GRANT = true, GROUP = true, HAVING = true, HOUR = true, IN = true, INDEX = true, INNER = true, INSENSITIVE = true, INSERT = true, INT = true, INTEGER = true, INTO = true, IS = true, JOIN = true, LEADING = true, LEFT = true, LIKE = true, LONG = true, LOWER = true, MAX = true, MAXIMUM_SEGMENT = true, MERGE = true, MIN = true, MINUTE = true, MONTH = true, NATIONAL = true, NATURAL = true, NCHAR = true, NO = true, NOT = true, NULL = true, NUMERIC = true, OCTET_LENGTH = true, OF = true, ON = true, ONLY = true, OPEN = true, OR = true, ORDER = true, OUTER = true, PARAMETER = true, PLAN = true, POSITION = true, POST_EVENT = true, PRECISION = true, PRIMARY = true, PROCEDURE = true, ['RDB$DB_KEY'] = true, REAL = true, RECORD_VERSION = true, RECREATE = true, RECURSIVE = true, REFERENCES = true, RELEASE = true, RETURNING_VALUES = true, RETURNS = true, REVOKE = true, RIGHT = true, ROLLBACK = true, ROWS = true, ROW_COUNT = true, SAVEPOINT = true, SECOND = true, SELECT = true, SENSITIVE = true, SET = true, SIMILAR = true, SMALLINT = true, SOME = true, SQLCODE = true, START = true, SUM = true, TABLE = true, THEN = true, TIME = true, TIMESTAMP = true, TO = true, TRAILING = true, TRIGGER = true, TRIM = true, UNION = true, UNIQUE = true, UPDATE = true, UPPER = true, USER = true, USING = true, VALUE = true, VALUES = true, VARCHAR = true, VARIABLE = true, VARYING = true, VIEW = true, WHEN = true, WHERE = true, WHILE = true, WITH = true, YEAR = true,
	},
}

return keywords

